<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of logout
 *
 * @author Nguyen Thai Binh
 */
class Logout extends CI_Controller {
  
  
  public function __construct() {
    parent::__construct();
  }
  
  public function index(){
    $this->auth->session_logout();
    unset_userdata('currentLang');
    redirect('admin');
  }
  
}